import request from "../util/request.js";

export function userList(query) {
    return request({
        url: '/userList',
        method: 'get',
        params: query
    })
}


export function userDelete(id) {
    return request({
        url: '/userDelete/' + id,
        method: 'delete',
    })
}


export function userAdd(data) {
    return request({
        url: '/userAdd',
        method: 'post',
        data: data
    })
}


export function userDetail(id) {
    return request({
        url: '/userDetail/' + id,
        method: 'get',
    })
}


export function userUpdate(data) {
    return request({
        url: '/userUpdate',
        method: 'put',
        data: data
    })
}